package com.by.springboottwodatabases.service;

import com.by.springboottwodatabases.controller.request.TestRequestBean;
import com.by.springboottwodatabases.controller.request.TwoRequestBean;
import com.by.springboottwodatabases.domain.two.DTestTwo;
import com.by.springboottwodatabases.domain.two.DTwo;

public interface TwoService {

    DTwo createTwo(TwoRequestBean bean);

    DTwo findById(Long id);

    DTwo updateTwo(Long id, TwoRequestBean bean);

    void deleteTwo(Long id);

    DTestTwo createTest(TestRequestBean bean);

    DTestTwo findTestById(Long id);

    DTestTwo updateTest(Long id, TestRequestBean bean);

    void deleteTest(Long id);

}
